package com.yixun.qfbao.request.login;

import javax.validation.constraints.Pattern;
import javax.validation.constraints.Size;

import org.hibernate.validator.constraints.NotBlank;

import io.swagger.annotations.ApiModelProperty;

/**
 * @author zilong.liu
 * @date 2020-8-3
 * @desc
 *
 */
public class ResetPwdReqDto {

	@ApiModelProperty(value="用户手机号")
	@Pattern(regexp = "^\\d{11}$", message = "手机号码必须为11位数字")
    private String phone;
    
	@ApiModelProperty(value="验证码")
	@Pattern(regexp = "^\\d{6}$", message = "验证码必须为6位数字")
    private String verificationCode;
	
	@ApiModelProperty(value="密码")
	@Size(min = 6, max = 20, message = "密码必须为6-20位")
    private String pwd;
	
	public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	public String getVerificationCode() {
		return verificationCode;
	}

	public void setVerificationCode(String verificationCode) {
		this.verificationCode = verificationCode;
	}

	public String getPwd() {
		return pwd;
	}

	public void setPwd(String pwd) {
		this.pwd = pwd;
	}

}
